import request from '@/utils/request';

// 修改 {shopId:'',“id”:”id”,“name”:”真实姓名”,“phone”:”账号”,“openid”:”openid”,“type”:”01700001支付宝 01700002微信”}
export function updateAccount(data) {
  return request({
    url: '/UserRest/updateAccount',
    method: 'post',
    data
  });
}
// 绑定 {shopId:'',“id”:”id”,“name”:”真实姓名”,“phone”:”账号”,“openid”:”openid”,“type”:”01700001支付宝 01700002微信”}
export function addAccount(data) {
  return request({
    url: '/UserRest/addAccount',
    method: 'post',
    data
  });
}
// 微信获取绑定地址
export function wxlogin(data) {
  return request({
    url: '/UserRest/wxlogin',
    method: 'post',
    data
  });
}

// 获取信息 {”shopId”:””}
export function getAccount(data) {
  return request({
    url: '/UserRest/getAccount',
    method: 'post',
    data
  });
}
// 提现申请 获取记录 {”shopId”:””}
export function getCashOut(data) {
  return request({
    url: '/UserRest/getCashOut',
    method: 'post',
    data
  });
}
// 提现申请 {“cashType”:”01700001支付宝 01700002微信”,”cashMoney”:”提现金额”，””:””}
export function addCashOut(data) {
  return request({
    url: '/UserRest/addCashOut',
    method: 'post',
    data
  });
}
// 提现申请 获取余额 {“id”:”shopId”}
export function getUserbalance(data) {
  return request({
    url: '/UserRest/getUserbalance',
    method: 'post',
    data
  });
}
// 取消申请 {“id”:””}
export function updateCashOut(data) {
  return request({
    url: '/UserRest/updateCashOut',
    method: 'post',
    data
  });
}
